import { request } from '@/plugins/request'

//用户登录
export const login = data => {
    return request({
        method: 'POST',
        url: '/users/login',
        data
    })
}

//用户注册
export const register = data => {
    return request({
        method: 'POST',
        url: '/users',
        data
    })
}

//用户注册
export const updateUser = data => {
    return request({
        method: 'PUT',
        url: '/user',
        data
    })
}